<div id = "drug_header" >
  <table width = "100%" border = "1" align = "center">
    <tr>
      <td>Drug</td>
      <td>Categories</td>
      <td>Score</td>
      <td>Total Ratings</td>
      <td>Total Sideffects</td>
    </tr>
    <tr>
      <td>
        <strong><%= h(@drug.name)%></strong>
      </td>    
      <td>
        <%= @categories.map {|category| link_to(h(category.name), :controller => "category", :action => "show", :id => category.id)}.join(', ') %>
      </td>
      <td>
        <strong><%= sprintf("%2.1f", @score) %></strong>
      </td>
      <td>
        <strong><%= @total_ratings_number %></strong>
      </td>
      <td>
        <strong><%= @total_sideffects_number %></strong>
      </td>
    </tr>
    <tr>
    </tr>
  </table>
</div>  
<div id = "drug_info">
  <%= render :partial => "drug_info" %>
</div>
